projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46193d5
)
lisp/emacs-lisp/bytecomp.el: Use byte-switch only for quoted symbols
author
Vibhav Pant
<vibhavp@gmail.com>
Thu, 19 Jan 2017 17:43:13 +0000
(23:13 +0530)
committer
Vibhav Pant
<vibhavp@gmail.com>
Thu, 19 Jan 2017 17:43:13 +0000
(23:13 +0530)
lisp/emacs-lisp/bytecomp.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/bytecomp.el
b/lisp/emacs-lisp/bytecomp.el
index a4f1242ce4a425e1f2291d4654b768604279a41b..74d135d155ca454e14fdcd4d587687e2da9dbc06 100644
(file)
--- a/
lisp/emacs-lisp/bytecomp.el
+++ b/
lisp/emacs-lisp/bytecomp.el
@@
-3972,7
+3972,9
@@
that suppresses all warnings during execution of BODY."
(defun byte-compile-cond-valid-obj2-p (obj)
(cond
- ((consp obj) (eq (car obj) 'quote))
+ ((consp obj) (and (eq (car obj) 'quote)
+ (= (length obj) 2)
+ (symbolp (cadr obj))))
(t t)))
(defun byte-compile-cond-vars (obj1 obj2)